package com.bean;

import java.sql.Timestamp;

public class Blog implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private String title;
	private String content;
	private int uid;
	private Timestamp time;

	public Blog(int id, String title, String content, int uid,Timestamp time) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.setUid(uid);
		this.time = time;
	}

	public Blog(String title, String content) {
		super();
		this.title = title;
		this.content = content;
	}

	public Blog(int id, String title, String content) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
	}

	public Blog(int id,int uid, String title, Timestamp time) {
		super();
		this.uid=uid;
		this.id = id;
		this.title = title;
		this.time = time;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp gettime() {
		return time;
	}


	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}


	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

}
